use sea_orm::FromQueryResult;
use serde::{Deserialize, Serialize};

#[derive(Serialize, Deserialize, Debug)]
pub struct UserCreateCmd {
    pub username: String,
    pub password: String,
    pub email: String,
    pub gender: String,
}

#[derive(Serialize, Deserialize, Debug)]
pub struct UserUpdateCmd {
    pub id: String,
    pub username: String,
    pub email: String,
    pub gender: String,
}

#[derive(Debug, Clone, Default, Serialize, FromQueryResult, Deserialize)]
pub struct ResultUser {
    pub id: String,
    pub username: String,
    pub email: String,
    pub gender: String,
}